class AddLotsOfIndexes < ActiveRecord::Migration
  def self.up
    add_index(:folders, :parent_id)
    add_index(:images, :folder_id)
    add_index(:votes, :tag_id)
    add_index(:votes, :image_fact_id)
  end

  def self.down
    remove_index(:votes, :image_fact_id)
    remove_index(:votes, :tag_id)
    remove_index(:images, :folder_id)
    remove_index(:folders, :parent_id)
  end
end
